export default {
  namespaced: true,
  state: {
    //是否已登录
    isLogined: localStorage.getItem("x-auth-token") ? true : false,
    // 用来表示是否登录的登录状态值
  },
  mutations: {
    //修改是否显示登录框状态
    changeIsLogin(state, payload) {
      // console.log("执行了changeIsLogin");
      state.isLogined = payload;
    },
  },
};
